package android.medicalcloud.com.yiapp.yilian.logic;

import android.medicalcloud.com.yiapp.base.net.lisener.ViewNetCallBack;
import android.medicalcloud.com.yiapp.base.utils.Logger;
import android.medicalcloud.com.yiapp.base.utils.MapBuilder;
import android.medicalcloud.com.yiapp.yilian.configer.enums.HttpConfig;
import android.medicalcloud.com.yiapp.yilian.model.BaseModeal;
import android.medicalcloud.com.yiapp.yilian.model.OrderModel;
import android.medicalcloud.com.yiapp.yilian.model.OrdersModel;
import android.medicalcloud.com.yiapp.yilian.model.PatitentAllModel;
import android.medicalcloud.com.yiapp.yilian.model.PatitentModel;
import android.medicalcloud.com.yiapp.yilian.utils.net.ConnectTool;

/**
 * Created by wanggenlin on 17-5-18.
 */
public class PatientController {
    static PatientController instance;

    private  String loginKey="UserLocalKey";
    public static PatientController getInstance() {
        if (instance == null) {
            instance = new PatientController();
        }
        return instance;
    }

    public void detail(ViewNetCallBack viewNetCallBack,String  id){
        try {
            ConnectTool.httpRequest(
                    HttpConfig.patientDetail,
                    new MapBuilder<String, Object>()
                            .add("id",id)
                            .getMap()
                    , viewNetCallBack
                    , PatitentAllModel.class);
        } catch (Exception e) {
            Logger.e(e.getLocalizedMessage(), e);
        }
    }






}
